package emergency.dto;
// default package

import java.math.BigDecimal;

/**
 * TAlertRecordId entity. @author MyEclipse Persistence Tools
 */
public class AlertRecordId implements java.io.Serializable {

	// Fields

	private Integer alertId;
	private String time;

	// Constructors

	/** default constructor */
	public AlertRecordId() {
	}

	/** full constructor */
	public AlertRecordId(Integer alertId, String time) {
		this.alertId = alertId;
		this.time = time;
	}

	// Property accessors

	public Integer getAlertId() {
		return this.alertId;
	}

	public void setAlertId(Integer alertId) {
		this.alertId = alertId;
	}

	public String getTime() {
		return this.time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AlertRecordId))
			return false;
		AlertRecordId castOther = (AlertRecordId) other;

		return ((this.getAlertId() == castOther.getAlertId()) || (this
				.getAlertId() != null && castOther.getAlertId() != null && this
				.getAlertId().equals(castOther.getAlertId())))
				&& ((this.getTime() == castOther.getTime()) || (this.getTime() != null
						&& castOther.getTime() != null && this.getTime()
						.equals(castOther.getTime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getAlertId() == null ? 0 : this.getAlertId().hashCode());
		result = 37 * result
				+ (getTime() == null ? 0 : this.getTime().hashCode());
		return result;
	}

}